<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    

    <script>

        // 变量赋值
        // var num = 3
        var num = 4
        // 三目运算
        num%2 ==0? console.log(num+'是偶数'):console.log(num+'是奇数')
        
        
    </script>
</body>
</html>